import javax.servlet.ServletException;

import nl.ViewerServer.Application;

import org.apache.axis.transport.http.AxisServlet;

public class ViewerServlet extends AxisServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7159598906974307191L;
	
	private Application application;
	
	public ViewerServlet() {
	}
	
	public void init() throws ServletException {
		// we want to do some initialization
		application = Application.getInstance();
		
		// initialize axis framework
		super.init();
	}
	
	public void destroy() { 
		// cleanup the application
		System.out.println("Shutting down ViewerServer application...");
		application.shutdown();
		System.out.println("Shutting down complete.");
	}
}